import request from '@/utils/request'

// 查询我的审件列表
export function listIncoming(query) {
  return request({
    url: '/incoming/incoming/list',
    method: 'get',
    params: query
  })
}

// 查询我的审件详细
export function getIncoming(id) {
  return request({
    url: '/incoming/incoming/' + id,
    method: 'get'
  })
}

// 新增我的审件
export function addIncoming(data) {
  return request({
    url: '/incoming/incoming',
    method: 'post',
    data: data
  })
}

// 修改我的审件
export function updateIncoming(data) {
  return request({
    url: '/incoming/incoming',
    method: 'put',
    data: data
  })
}

// 删除我的审件
export function delIncoming(id) {
  return request({
    url: '/incoming/incoming/' + id,
    method: 'delete'
  })
}
